package nrpc.message;

import message.preset.PresetHandlerMapper;

import nrpc.message.meta.InvokeMessage;
import nrpc.message.meta.ReturnMessage;

public class DefaultHandlerMapper extends PresetHandlerMapper {
	
	public static final DefaultHandlerMapper INSTANCE = new DefaultHandlerMapper();
	
	private static long mix(int high, int low){
		long a = low;
		return a | (high << 32);
	}
	
//	private static long basic(int low){
//		return ((long)(-1)) | low;
//	}

	{
		register(mix(1, 1), InvokeMessage.class);
		register(mix(1, 2), ReturnMessage.class);
	}
	
	public DefaultHandlerMapper() {}
	
}
